<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML >
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>后台管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	  <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="UI/admins/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="UI/admins/css/main.css"/>
    <script type="text/javascript" src="UI/admins/js/libs/modernizr.min.js">
    
    </script>
  </head>
  
  <body>
    <div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="UI/admins/index.jsp" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="UI/admins/index.jsp">首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a ><s:property value="#session.name"/></a></li>
                
                <li><a href="loginOut">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a ><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="listAllMedia" target="win"><i class="icon-font">&#xe008;</i>媒体管理</a></li>
                        <li><a href="listAllMachine" target="win"><i class="icon-font">&#xe005;</i>自助终端管理</a></li>
                        <li><a href="listAllDisparter" target="win"><i class="icon-font">&#xe006;</i>配送员管理</a></li>           
                       <li><a href="listUser" target="win"><i class="icon-font">&#xe004;</i>用户管理</a></li>
                        <li><a href="listAllOrdertable" target="win"><i class="icon-font">&#xe004;</i>订单管理</a></li>
                    	 <li><a href="listCount" target="win"><i class="icon-font">&#xe004;</i>销量统计</a></li>
                    </ul>
                </li>
                <li>
                	<s:if test="#session.role==0">
                	
                    <a ><i class="icon-font">&#xe018;</i>系统管理</a>
                    <ul class="sub-menu">
                    <li><a href="listAllAdmin" target="win"><i class="icon-font">&#xe004;</i>管理员管理</a></li>
                    
                    </ul>
                    </s:if>
                </li>
                <li>
                    <a href="#"><i class="icon-font">&#xe018;</i>个人管理</a>
                    <ul class="sub-menu">
                   		<li><a href="preEditAdminPwd?id=<s:property value="#session.id"/>" target="win"><i class="icon-font">&#xe037;</i>修改密码</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap" ht>
        <iframe name="win" id="win" frameborder="0" height="1300" width="100%">
        	
        </iframe>
    </div>
    <!--/main-->
</div>
<script type="text/javascript">

function reinitIframe(){

var iframe = document.getElementById("win");

try{

iframe.height =  iframe.contentWindow.document.documentElement.scrollHeight;

}catch (ex){}

}

window.setInterval("reinitIframe()", 200);

</script>
  </body>
</html>
